<%= render :partial => "search_form", :locals => { :query => @query } %>
<% for name in [:notice, :warning, :message] %>
  <% if flash[name] %>
    <%= "<div id=\"#{name}\">#{flash[name]}</div>" %>
  <% end %>
<% end %>
<%= @content_for_layout %>